﻿<%@ Page Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true"
    CodeFile="cadastrar.aspx.cs" Inherits="cadastrar" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="head">

    <script type="text/javascript" src="js/jquery.maskedinput-1.3.min.js"></script>
<script type="text/javascript" language="javascript">
    $(document).ready(function()
    {
        $(".mask_cep").mask("99999-999");
    });

</script>
<link href="css/cadastrar.css" rel="stylesheet" type="text/css" />

</asp:Content>
<asp:Content ContentPlaceHolderID="contentMain" runat="server">
    <div class="formulario">
        <h1>Cadastrar Novo Equipamento</h1>
         <table style="margin:auto;">
            <tr>
                <td class="label_cadastro">
                    <span>Tipo de Equipamento</span>
                </td>
                <td class="campo_cadastro">
                    <asp:DropDownList ID="ddlTipoEquipamento1" runat="server" CssClass="larg_inpt3" Width="137px"
                        OnSelectedIndexChanged="ddlTipoEquipamento1_SelectedIndexChanged" AutoPostBack="true">
                        <asp:ListItem Selected="True"> -- -- </asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Categoria</span>
                </td>
                <td class="campo_cadastro">
                    <asp:DropDownList ID="ddlTipoEquipamento2" runat="server" CssClass="larg_inpt3" Width="137px">
                        <asp:ListItem Selected="True"> -- -- </asp:ListItem>
                    </asp:DropDownList>
                    <span class="dica">Uma descrição mais detalhada do tipo de equipamento</span>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Nome</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtNome" MaxLength="500" Width="272px" runat="server" CssClass="larg_inpt3"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    <strong><em><span>Endereço</span></em></strong>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Rua</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtRua" CssClass="larg_inpt3" Width="272px" runat="server" MaxLength="500"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Numero</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtNumero" Width="272px" CssClass="larg_inpt3" runat="server" MaxLength="500"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Bairro</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtBairro" Width="272px" CssClass="larg_inpt3" runat="server" MaxLength="500"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Cep</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtCEP" Width="272px" CssClass="larg_inpt3 mask_cep" runat="server"
                         MaxLength="500"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Descrição</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtDescrição"  MaxLength="500" runat="server" TextMode="MultiLine"
                        Height="73px" CssClass="multiline_textbox"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="linha_equipamentos">
                <td class="label_cadastro">
                    <span>Equipamentos</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtEquipamentos"  MaxLength="500" runat="server" TextMode="MultiLine"
                        Height="73px" CssClass="multiline_textbox"></asp:TextBox>
                    <span class="dica"></span>
                </td>
            </tr>
            <tr runat="server" id="linha_serviços">
                <td class="label_cadastro">
                    <span>Serviços</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtServiços"  MaxLength="500" runat="server" TextMode="MultiLine"
                        Height="73px" CssClass="multiline_textbox"></asp:TextBox>
                    <span class="dica"></span>
                </td>
            </tr>
            <tr runat="server" id="linha_especialidade">
                <td class="label_cadastro">
                    <span>Especialidade</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtEspecialidade"  MaxLength="500" runat="server" TextMode="MultiLine"
                        Height="73px" CssClass="multiline_textbox"></asp:TextBox>
                    <span class="dica"></span>
                </td>
            </tr>
            <tr runat="server" id="linha_pagamento">
                <td class="label_cadastro">
                    <span>Formas de Pagamento</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtPagamento"  MaxLength="500" runat="server" TextMode="MultiLine"
                        Height="73px" CssClass="multiline_textbox"></asp:TextBox>
                    <span class="dica">ex: Dinheiro, Cartões de Crédito (Visa, Mastercard)</span>
                </td>
            </tr>
            <tr runat="server" id="linha_companhia">
                <td class="label_cadastro">
                    <span>Companhia</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtCompanhia"  MaxLength="500" runat="server" TextMode="MultiLine"
                        Height="73px" CssClass="multiline_textbox"></asp:TextBox>
                    <span class="dica">ex: Gol, Salutaris</span>
                </td>
            </tr>
            <tr runat="server" id="linha_rotas">
                <td class="label_cadastro">
                    <span>Rotas</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtRotas"  MaxLength="500" runat="server" TextMode="MultiLine" Height="73px"
                        CssClass="multiline_textbox"></asp:TextBox>
                    <span class="dica"></span>
                </td>
            </tr>
            <tr runat="server" id="linha_preços">
                <td class="label_cadastro">
                    <span>Faixa de Preços</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtPreços"  MaxLength="500" runat="server" TextMode="MultiLine" Height="73px"
                        CssClass="multiline_textbox"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="linha_tarifas">
                <td class="label_cadastro">
                    <span>Tarifas</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtTarifas"  MaxLength="500" runat="server" TextMode="MultiLine"
                        Height="73px" CssClass="multiline_textbox"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="linha_couvert">
                <td class="label_cadastro">
                    <span>Couvert</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtCouvert"  MaxLength="500" runat="server" TextMode="MultiLine"
                        Height="73px" CssClass="multiline_textbox"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="linha_horario">
                <td class="label_cadastro">
                    <span>Horário de Funcionamento</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtHorarioFuncionamento"  MaxLength="500" Width="272px" runat="server"
                        CssClass="larg_inpt3"></asp:TextBox>
                    <span class="dica">ex: Seg a Sab: 9h - 20h</span>
                </td>
            </tr>
            <tr runat="server" id="linha_unidades">
                <td class="label_cadastro">
                    <span>Unidades Habitacionais</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtUnidadesHabitacionais"  MaxLength="500" Width="272px" runat="server"
                        CssClass="larg_inpt3"></asp:TextBox>
                    <span class="dica"></span>
                </td>
            </tr>
            <tr runat="server" id="linha_reservas">
                <td class="label_cadastro">
                    <span>Reservas</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtReservas"  MaxLength="500" runat="server" TextMode="MultiLine" Height="73px"
                        CssClass="multiline_textbox"></asp:TextBox>
                    <span class="dica"></span>
                </td>
            </tr>
            <tr runat="server" id="linha_capacidade">
                <td class="label_cadastro">
                    <span>Capacidade</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtCapacidade"  MaxLength="500" Width="272px" runat="server" CssClass="larg_inpt3"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="linha_cenario">
                <td class="label_cadastro">
                    <span>Cenário</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtCenário"  MaxLength="500" Width="272px" runat="server" CssClass="larg_inpt3"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="linha_no_local">
                <td class="label_cadastro">
                    <span>No Local</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtNoLocal"  MaxLength="500" Width="272px" runat="server" CssClass="larg_inpt3"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="linha_no_hotel">
                <td class="label_cadastro">
                    <span>No Hotel</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtNoHotel"  MaxLength="500" Width="272px" runat="server" CssClass="larg_inpt3"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <strong><em><span>Contato</span></em></strong>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Site</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtSite" Width="272px" CssClass="larg_inpt3" runat="server" onkeydown="formataTelefone(this, event);"
                         MaxLength="500"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Tel</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtTel" Width="272px" CssClass="larg_inpt3 mask_tel" runat="server"
                         MaxLength="500"></asp:TextBox>
                    <span class="dica">ex: (91)3333-2222, (91)3233-3333...</span>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Email</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtEmail" Width="272px" MaxLength="500" CssClass="larg_inpt3" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="label_cadastro">
                    <span>Fax</span>
                </td>
                <td class="campo_cadastro">
                    <asp:TextBox ID="txtFax" Width="272px" CssClass="larg_inpt3 mask_tel" runat="server" MaxLength="500"></asp:TextBox>
                    <span class="dica">ex: (91)3333-2222, (91)3233-3333...</span>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    Adicionar Foto:
                </td>
                <td>
                    <asp:FileUpload CssClass="larg_inpt3" ID="fileUpload" runat="server" Width="216px" />               
                    <span class="dica"><asp:Label ID="lblFileUpload" runat="server"></asp:Label></span>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnCadastrar" runat="server" Text="Cadastrar" CssClass="larg_inpt3 botao"
                        OnClick="btnCadastrar_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
